//
//  CBUUID+Makeblock.m
//  Pods
//
//  Created by CatchZeng on 2016/12/14.
//
//

#import "CBUUID+Makeblock.h"

@implementation CBUUID (Makeblock)

+ (CBUUID *)OTAService{
    return [self.class UUIDWithString:@"9E5D1E47-5C13-43A0-8635-82AD38A1386F"];
}

+ (CBUUID *)OTACommandCharateristic{
    return [self.class UUIDWithString:@"E3DD50BF-F7A7-4E99-838E-570A086C666B"];
}

+ (CBUUID *)OTADataWriteCharateristic{
    return [self.class UUIDWithString:@"92E86C7A-D961-4091-B74F-2409E72EFE36"];
}

+ (CBUUID *)OTAVersionCharateristic{
    return [self.class UUIDWithString:@"347F7608-2E2D-47EB-91E9-75D4EDC4DE3B"];
}

+ (CBUUID *)transDataService{
    return [self.class UUIDWithString:@"FFF0"];
}

+ (CBUUID *)transDataDualService{
    return [self.class UUIDWithString:@"FFE1"];
}

+ (CBUUID *)resetDualService{
    return [self.class UUIDWithString:@"FFE4"];
}

+ (CBUUID *)transDataCharateristic{
    return [self.class UUIDWithString:@"FFF1"];
}

+ (CBUUID *)transDataDualCharateristic{
    return [self.class UUIDWithString:@"FFE3"];
}

+ (CBUUID *)nofityDataCharateristic{
    return [self.class UUIDWithString:@"FFF4"];
}

+ (CBUUID *)nofityDataDualCharateristic{
    return [self.class UUIDWithString:@"FFE2"];
}


// resetDualCharateristic为固件升级时的重设IO & Airblock固件升级时的GPIO
// resetDualCharateristic2为Airblock固件升级时的GPIO

//1-- 通用IO1、Airblock固件升级GPIO4 Boot0
+ (CBUUID *)resetDualCharateristic{
    return [self.class UUIDWithString:@"FFE5"];
}

//2-- 通用IO2、Airblock固件升级GPIO3 Reset
+ (CBUUID *)resetDualCharateristic2{
    return [self.class UUIDWithString:@"FFE6"];
}

//3-- 通用IO3
+ (CBUUID *)resetDualCharateristic3{
    return [self.class UUIDWithString:@"FFE7"];
}

//4-- 通用IO4
+ (CBUUID *)resetDualCharateristic4{
    return [self.class UUIDWithString:@"FFE8"];
}

//5-- 蓝牙芯片跳过校验【Airblock升级的时候需要先发送0x01跳过校验，升级完毕后发送0x00】
+ (CBUUID *)escapeCheckCharateristic{
    return [self.class UUIDWithString:@"FFE9"];
}

@end
